//
//  DWPublicProperties.swift
//  DWater-Swift
//
//  Created by mac on 2017/4/18.
//  Copyright © 2017年 Dimon.胡亚宾. All rights reserved.
//

import UIKit
import Foundation
/*第三方sdk的常量*/



/*系统常量的设置*/

public let MRC_SERVICE_NAME    = "com.diwinet.client"
public let kSaveMacroUserID    = "kSaveMacroUserID"
public let kSaveMacroUserToken = "kSaveMacroUserToken"
public let kSaveMacroUserName  = "kSaveMacroUserName"
public let kSaveMacroUserPhone = "kSaveMacroUserPhone"

/*主要控件常量*/
public let NAVIGATION_HEIGHT :CGFloat = 64
public let TABBAR_HEIGHT     :CGFloat = 49
public let MAIN_BOUNDS       :CGRect  = UIScreen.main.bounds
public let SCREEN_WIDTH      :CGFloat = UIScreen.main.bounds.size.width
public let SCREEN_HEIGHT     :CGFloat = UIScreen.main.bounds.size.height

public let defaults = UserDefaults.standard

/**/
//tabbarItem颜色
public let TabBarColor:UIColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1)

/// cache文件路径
public let cachesPath: String = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).last!


//MARK:通知函数

public let kNotificationRefreshMainVC   = "kNotificationRefreshMainVC"//主要页面刷新，禁止替换其他方式。
public let kNotificationWaterPurifier   = "kNotificationWaterPurifier"//净水机
public let kNotificationRefreshAddress  = "kNotificationRefreshAddress"//一对多。
public let kNotificationRefreshMainData = "kNotificationRefreshMainData"//禁止替换
public let kNotificationRefalishPurifier = "kNotificationRefalishWaterPurifier" ////刷新默认净水机

//mark:网络
public let NOTIFY_KEY_TOKEN_EXPIRE         =        "NOTIFY_KEY_TOKEN_EXPIRE"
public let NOTIFY_KEY_LOGIN_WITH_OTHER_DEVICE   =   "NOTIFY_KEY_LOGIN_WITH_OTHER_DEVICE"













